import java.util.concurrent.*;

public class CallableTest implements Callable {
    @Override
    public Object call() throws Exception {
        return "From CallableTest";
    }

    public static void main(String[] args) {
        CallableTest callableTest = new CallableTest();
        ExecutorService executorService = Executors.newSingleThreadExecutor();
        Future submit = executorService.submit(callableTest);
        try {
            System.out.println(submit.get());
        } catch (InterruptedException | ExecutionException e) {
            e.printStackTrace();
        }
    }
}
